// 文件服务
import axios from '@/api/request/request'

// 对象存储文件上传
const fileUpload = (option: any) => {
  return axios.upload('/file/upload', option)
}

// 对象存储文件上传
const fileDelete = (option: any) => {
  return axios.get('/file/delete', option)
}

// 对象存储文件下载
const fileDownload = (option: any) => {
  return axios.get('/file/download', option, { responseType: 'blob' })
}

export { fileUpload, fileDelete, fileDownload }
